﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="SilverlightApplication4.Util.SearchWindow"
           Width="504" Height="303" 
           Title="SearchWindow">
    <Grid x:Name="LayoutRoot" Margin="2,2,-8,2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,10,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,90,0" Grid.Row="1" />
        <sdk:DataGrid x:Name="SearchGrid" HorizontalAlignment="Left" Height="197" VerticalAlignment="Top" Width="482" Margin="0,29,0,0">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn Header="No" Width="80"/>
                <sdk:DataGridTextColumn Header="Name" Width="100"/>
                <sdk:DataGridTextColumn Header="Description" Width="220"/>
                <sdk:DataGridTextColumn Header="Date" Width="80" />
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="29" VerticalAlignment="Top" Width="482">
            <TextBox x:Name="SearchTextBox" Background="Yellow" TextWrapping="Wrap" Width="408"/>
            <Button Content="Search" Width="74" Click="SearchButton_Click"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>